#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QPushButton>
#include"mypushbutton.h"
#include "mydata.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    Mypushbutton *my[6][8];
    int count=0;
    Mypushbutton* p1=nullptr;
    Mypushbutton* p2=nullptr;

    Mydata mydata;
//注意前面的public
public slots:
        void on_mybutton_clicked();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
